package nskhan.application;

import javax.swing.*;

import nskhan.controls.SketchCanvas;

public class SketchUI extends JFrame{
	
	private static final long serialVersionUID = 1L;
	
	private SketchCanvas sketchCanvas = null;
	
	public SketchUI(){
		super();
		initialize(); 
	}
	
	private void initialize(){
		this.setLayout(null);
		this.setSize(800,600);
		
		this.add(getSketchCanvas());
		this.setTitle("Labeling Tool");
	}
	
	private SketchCanvas getSketchCanvas(){
		if(sketchCanvas == null){
			sketchCanvas = new SketchCanvas();
			sketchCanvas.setLocation(10, 10);
		}		
		return sketchCanvas;
	}
	
	public static void main(String args[]){
		SketchUI sketchUI = new SketchUI();
		sketchUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		sketchUI.setVisible(true);
	}	
}
